package com.hys.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@ApiModel("合作信息")
public class CooperInfoParam {

    @ApiModelProperty("对应专业")
    @NotBlank(message = "对应专业不能为空")
    private String major;

    @ApiModelProperty("是否签订协议")
    @NotNull(message = "是否签订协议不能为空")
    private Boolean isAgreeSigned;

    @ApiModelProperty("校方联系人")
    @NotBlank(message = "校方联系人不能为空")
    @Length(max = 5, message = "校方联系人最长不能超过5个字符")
    private String schoolContactPerson;

    @ApiModelProperty("企业联系人")
    @NotBlank(message = "企业联系人不能为空")
    @Length(max = 5, message = "企业联系人最长不能超过5个字符")
    private String enterpriseContactPerson;

    @ApiModelProperty("企业联系电话")
    @NotBlank(message = "企业联系电话不能为空")
    @Length(max = 11, message = "企业联系电话最长不能超过11个字符")
    private String enterpriseContactPhone;


}
